eth_ecrecover

(alias) function eth_ecrecover(r: byte_array, s: byte_array, rec_id: integer, data_hash: byte_array): byte_array

Calculates an Ethereum public key from a signature and hash.

Alias

Return

a byte array representing the public key.

Since

0.10.6

Parameters

r

The first component of the Ethereum signature.

s

The second component of the Ethereum signature.

rec_id

The recovery identifier used for signature recovery.

data_hash

The byte array representing the hash that was signed.